﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using KBC_Quiz_Show.Presentation;

namespace KBC_Quiz_Show
{
    public partial class Form1 : DevComponents.DotNetBar.Office2007RibbonForm
    {
        public FrmChangePass frmChangePass = new FrmChangePass();
        public FrmLogin frmLogin = new FrmLogin();
        public Form1()
        {
            InitializeComponent();
        }
        public void ShowForm()
        {
            btnManage.Visible = true;
            btnChangePass.Visible = true;
            btnReport.Visible = true;
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            btnManage.Visible = false;
            btnChangePass.Visible = false;
            btnReport.Visible = false;
        }

        private void buttonX2_Click(object sender, EventArgs e)
        {
            FrmManager frmManager = new FrmManager();
            frmManager.Visible = true;
            frmManager.Show();

        }

        private void buttonX1_Click(object sender, EventArgs e)
        {
            FrmRegister frm = new FrmRegister();
            frm.Show();
            this.Hide();
        }

        private void buttonX3_Click(object sender, EventArgs e)
        {
            FrmHighScore frm = new FrmHighScore();
            frm.Show();
        }

        private void buttonX5_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void buttonX7_Click(object sender, EventArgs e)
        {

            frmChangePass.Show();
        }

        private void buttonX6_Click(object sender, EventArgs e)
        {
            FrmLogin frmLogin = new FrmLogin();
            frmLogin.Visible = true;
            frmLogin.Show();
        }

        private void buttonX4_Click(object sender, EventArgs e)
        {
            FrmIntruction frm = new FrmIntruction();
            frm.Show();
        }

        private void buttonX8_Click(object sender, EventArgs e)
        {
            FrmReportPlayer frm = new FrmReportPlayer();
            frm.Show();
            this.Hide();
        }
    }
}
